package com.heima.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.article.dto.ArticleHomeDto;
import com.heima.model.article.pojos.ApArticle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface ApArticleMapper extends BaseMapper<ApArticle> {

    //    查询文章列表
    public List<ApArticle> loadArticleList(ArticleHomeDto dto, short type);

//    查询前五天的文章数据
public List<ApArticle> findArticleListByLast5days(@Param("dayParam") Date dayParam);

}